package com.wch.demo.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "wchtest")
public class Contomer1 {

    @RabbitHandler
    public void showMessage(String message){
        System.out.println("接收wchtest消息:"+message);

    }
}
